package xinxin.com.BridgePattern;

import xinxin.com.BridgePattern.HandsetBrand.Detail.HandsetBrandN;
import xinxin.com.BridgePattern.HandsetBrand.HandsetBrand;
import xinxin.com.BridgePattern.HandsetSoft.Detail.HandsetAddressList;
import xinxin.com.BridgePattern.HandsetSoft.Detail.HandsetGame;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/1 16:15
 */
public class BridgePattern {
    public static void main(String[] args) {
        HandsetBrand ab;
        ab = new HandsetBrandN();

        ab.SetHandsetSoft(new HandsetGame());
        ab.Run();

        ab.SetHandsetSoft(new HandsetAddressList());
        ab.Run();

        ab = new HandsetBrandN();

        ab.SetHandsetSoft(new HandsetGame());
        ab.Run();

        ab.SetHandsetSoft(new HandsetAddressList());
        ab.Run();
    }
}
